<html>
<body>
<table border=1>
    {foreach from=$visiteurs item=ligne name=foo}
        {if $smarty.foreach.foo.index is even}
            <tr bgcolor="yellow"><td>{$smarty.foreach.foo.index}</td><td>{$ligne}</td></tr>
            {else}
               <tr bgcolor="grey"><td> {$smarty.foreach.foo.index}</td><td>{$ligne}</td></tr>
                {/if}
        {/foreach}
</table>
</body>
</html>
